import request from '../utils/request.js'

//获取banner列表
export const getListData=()=>{
    return request.get('/admin/getAllSwiper')
}

//新增banner
export const addBanner=(data)=>{
    return request.post('/admin/addSwiper',{data})
}

//删除
export const deleteOneBanner=(data)=>{
    return request.get('/admin/deleteSwiper',{data})
}

//修改
export const updateOneBanner=(data)=>{
    return request.post('/admin/updateSwiper',{data})
}